package log;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class logDemo {
    public static void main(String[] args) {
        Student student = new Student("zhuyongjie", 24);
        log.info("学生信息为 {}", student);

        try {
            student.setName("朱勇洁");
            throw new RuntimeException("lalalalala!!!");
        } catch (Exception e) {
            log.error("异常为", e);
        }
    }
}
